<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>后台管理系统-HTML5后台管理系统</title>
<meta name="keywords"  content="设置关键词..." />
<meta name="description" content="设置描述..." />
<meta name="author" content="DeathGhost" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<link rel="icon" href="/images/icon/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script src="/js/jquery.js"></script>
<script src="/js/plug-ins/customScrollbar.min.js"></script>
<script src="/js/plug-ins/layerUi/layer.js"></script>
<script src="/js/plug-ins/pagination.js"></script>
<script src="/js/public.js"></script>
<script src="/js/linwq.js"></script>
</head>
<body>
<div class="main-wrap">
	<div class="side-nav">
		<div class="side-logo">
			<div class="logo">
				<span class="logo-ico">
					<i class="i-l-1"></i>
					<i class="i-l-2"></i>
					<i class="i-l-3"></i>
				</span>
				<strong>模块化后台管理模板</strong>
			</div>
		</div>
		
		<nav class="side-menu content mCustomScrollbar" data-mcs-theme="minimal-dark">
			<h2>
				<a href="index.html" class="InitialPage"><i class="icon-dashboard"></i>数据概况</a>
			</h2>
			<ul>
				<c:forEach items="${muneList}" var="first">
					<li>
						<dl>
							<dt>
								<i class="${first.mIcon }"></i>${first.mName}<i class="icon-angle-right"></i>
							</dt>
							<c:forEach items="${first.second }" var="second">
								<dd>
									<i class="${second.m_icon }"></i><a href="javascript:void(0);" onclick="indexMune('${second.m_url }')">${second.m_name}</a>
								</dd>
							</c:forEach>
						</dl>
					</li>
				</c:forEach>
			</ul>
		</nav>
		<footer class="side-footer">©  版权所有</footer>
	</div>
	<div class="content-wrap">
		<header class="top-hd">
			<div class="hd-lt">
				<a class="icon-reorder"></a>
			</div>
			<div class="hd-rt">
				<ul>
					<!-- <li>
						<a href="#" target="_blank"><i class="icon-home"></i>前台访问</a>
					</li>
					<li>
						<a><i class="icon-random"></i>清除缓存</a>
					</li>
					<li>
						<a><i class="icon-user"></i>管理员:<em>DeathGhost</em></a>
					</li>
					<li>
						<a><i class="icon-bell-alt"></i>系统消息</a>
					</li> -->
					<li>
						<a href="javascript:void(0)" id="JsSignOut"><i class="icon-signout"></i>安全退出</a>
					</li>
				</ul>
			</div>
		</header>
		<main class="main-cont content mCustomScrollbar">
			<!--开始::内容-->
			<div class="page-wrap" id="contentMain">
				<input type="text" id="topic" name="topic">
				<input type="text" id="msg" name="msg">
				<input type="button" class="btn btn-info" value="发送" onclick="sendMessage()">
			</div>
			<!--开始::结束-->
		</main>
		<footer class="btm-ft">
			<!-- <p class="clear">
				<span class="fl">©Copyright 2016 
				<span class="fr text-info">
					<em class="uppercase">
						<i class="icon-user"></i>
					</em> | 
					<em class="uppercase"><i class="icon-envelope-alt"></i>
					</em>
					<a onclick="reciprocate()" class="text-primary"><i class="icon-qrcode"></i>捐赠</a>
				</span>
			</p> -->
		</footer>
	</div>
</div>
<script type="text/javascript">
var indexMune = function(url){
	_linwq_ajax(url,null,'html',function(data){
		$("#contentMain").html(data);
	});
}
function sendMessage(){
	var param={
		topic:$("#topic").val(),
		msg:$("#msg").val()
	};
	_linwq_ajax("/sendMessage.action",param,'text',function(data){
		console.info(data);
		if(data=="success"){
			console.info("发送成功！");
		}else{
			console.info("发送失败！");
		}
	},null,function(data){
		console.info(data);
	});
}
</script>
</body>
</html>

